#pragma once

#pragma once

#include "Sprite.h"
#include "TouchArea.h"
#include "IwGeomSVec2.h"

class UIButton {
	public:
	
		void Load( const char* file, const CIwSVec2& pos );
		void Unload();
		
		void Draw();
		void Update( float dt );
	
		bool IsPressed() const;
	
	private:
	
		Sprite m_sprite;
		TouchArea m_touch;
		CIwSVec2 m_pos;
};